/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconRollback: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M374.816 489.568a32 32 0 0 1 2.304 42.24l-2.688 3.008a32 32 0 0 1-42.24 2.304l-3.008-2.688-157.376-160a32 32 0 0 1-2.624-41.856l2.624-3.008 157.376-160a32 32 0 0 1 48.256 41.824l-2.624 3.04L270.976 320H640a256 256 0 0 1 8 511.872L640 832H320a32 32 0 0 1-3.744-63.776L320 768h320a192 192 0 0 0 7.2-383.872L640 384H270.976l103.84 105.568z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconRollback.defaultProps = {
  size: 18,
};

export default IconRollback;
